package com.notetool.dataprovider.flatfile;

import java.io.File;
import java.io.FilenameFilter;

import com.notetool.util.FileHelper;
import com.notetool.util.StringHelper;

public class NoteFileFilter implements FilenameFilter
{
    
    ////////////////////
    // FilenameFilter implementation
    public boolean accept (File file, String name)
    {
        // Check extension
        return StringHelper.emptyIfNull (FileHelper.getExtension (name)).toUpperCase ().equals("DAT");
    }
    
}
